<?php

namespace Modules\BlogAdmin\Models;
use Modules\Admin\Models\BaseModel;
use Illuminate\Support\Facades\DB;
class BlogComment extends BaseModel
{	
	/**
     * @name  关联文章
     */
    public function article_to()
    {
        return $this->belongsTo('Modules\BlogAdmin\Models\BlogArticle','blog_article_id','id');
    }
	/**
     * @name  列表数据处理
     */
	
	public function data_list($data){ 
		foreach($data as $k=>$v){
			$data[$k]['title'] = $v['article_to']['title'];
		}
		return $data;
	}
	
	
	
	
	
	
}
